package com.xiangwei.service;

import java.util.List;
import java.util.Map;


public interface IQrcodeService {

	public Long insert(Map<String, Object> barcode);
	
	public int existTable(String tableName);
	
	public int createNewTable(String tableName);
	
	public int createScanrecordTable(String tableName);

	/**
	 * 查询二维码记录表中最大记录ID
	 * @param qrcode
	 * @return
	 */
	public int getMaxId(Map<String, Object> qrcode);

	public void bathchInsert(Map<String, Object> map);

	public List<Integer> getIdList(Map<String, Object> qrcode);
	
	public int createGodTable(String tableName);
	
	public int getQrcodeCount();
	
	public int getScanrecordCount();
	
	public int getGodCount();
	
	/**
	 * 判断此二维码编号是否存在该产品的产码表中，
	 * 存在为true,不存在为false
	 * @param qrcode
	 * @return
	 */
	public boolean qrcodeIsExist(Map<String, Object> qrcode);
}
